#region Usings
using BK.BL;
using Lib.ApplicationBlocks.Modules.Web.General;
using Lib.Data.ORM.Entity;
using Lib.Data.ORM.EntityManagement;
#endregion

namespace BK.WebSite.AppCode
{
    public abstract class BkDataEditControl<TEntity, TEntityManager> : DataEditControl<TEntity, TEntityManager>
        where TEntity : BaseEntity<IdentifierInt>, new()
        where TEntityManager : BaseDataManager<TEntity, IdentifierInt>

    {
        #region Instance Methods
        protected override TEntityManager GetEntityManager()
        {
            return (TEntityManager) BlContext.Instance.DataManagers[typeof (TEntity)];
        }
        #endregion
    }
}